package top.dfghhj.common.exception;


public abstract class BaseException extends RuntimeException{

    private static final long serialVersionUID = 1L;

    private ErrorCode errCode;

    public BaseException(String errMessage){
        super(errMessage);
    }

    public BaseException(String errMessage, Throwable e) {
        super(errMessage, e);
    }

    public ErrorCode getErrCode() {
        return errCode;
    }

    public void setErrCode(ErrorCode errCode) {
        this.errCode = errCode;
    }

}
